<!--
*Author：DGZ
 **  contact:service@dagongzao.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/sys/flow/Sys_WorkFlowTableAuditLog.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/sys/flow/Sys_WorkFlowTableAuditLog.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'WorkFlowAuditLogId',
                footer: "Foots",
                cnName: '审批记录',
                name: 'flow/Sys_WorkFlowTableAuditLog',
                newTabEdit: false,
                url: "/Sys_WorkFlowTableAuditLog/",
                sortName: "CreateTime"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:'WorkFlowAuditLogId',title:'Id',type:'string',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'WorkFlowTableId',title:'WorkFlowTableId',type:'string',width:110,align:'left'},
                       {field:'WorkFlowTableStepId',title:'WorkFlowTableStepId',type:'string',width:110,align:'left'},
                       {field:'StepId',title:'节点id',type:'string',width:120,align:'left'},
                       {field:'StepName',title:'节点名称',type:'string',width:180,align:'left'},
                       {field:'AuditId',title:'AuditId',type:'int',width:110,align:'left'},
                       {field:'Auditor',title:'Auditor',type:'string',width:120,align:'left'},
                       {field:'AuditStatus',title:'AuditStatus',type:'int',width:110,align:'left'},
                       {field:'AuditResult',title:'AuditResult',type:'string',width:220,align:'left'},
                       {field:'AuditDate',title:'AuditDate',type:'datetime',width:150,align:'left'},
                       {field:'CreateTime',title:'CreateTime',type:'datetime',width:150,align:'left'},
                       {field:'Remarks',title:'备注',type:'string',width:120,align:'left'},
                       {field:'IsValid',title:'逻辑删除',type:'int',width:120,hidden:true,require:true,align:'left'}]);
            const detail = ref({columns:[]});
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
